package com.woniuxy.Test;

import com.woniuxy.Service.ClazzNameService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author：向天浩
 * @Date：2022/1/21 11:58
 * @Description :TODO
 */
//基于注解的事务实现
public class AnnoTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("anno.xml");
        ClazzNameService clazzNameServiceImp = applicationContext.getBean("clazzNameServiceImp", ClazzNameService.class);
        clazzNameServiceImp.updateClazzById(1001,"88期");

    }
}
